<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑学生</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h1 class="text-center">编辑学生</h1>
        <form method="post">
            <div class="mb-3">
                <label for="Sno" class="form-label">学号</label>
                <input type="text" class="form-control" id="Sno" name="Sno" value="{{ student.Sno }}" readonly>
            </div>
            <div class="mb-3">
                <label for="Sname" class="form-label">姓名</label>
                <input type="text" class="form-control" id="Sname" name="Sname" value="{{ student.Sname }}" required>
            </div>
            <div class="mb-3">
                <label for="Ssex" class="form-label">性别</label>
                <input type="text" class="form-control" id="Ssex" name="Ssex" value="{{ student.Ssex }}" required>
            </div>
            <div class="mb-3">
                <label for="Sage" class="form-label">年龄</label>
                <input type="number" class="form-control" id="Sage" name="Sage" value="{{ student.Sage }}" required>
            </div>
            <div class="mb-3">
                <label for="Dno" class="form-label">学院编号</label>
                <input type="text" class="form-control" id="Dno" name="Dno" value="{{ student.Dno }}" required>
            </div>
            <div class="mb-3">
                <label for="Sclass" class="form-label">班级编号</label>
                <input type="text" class="form-control" id="Sclass" name="Sclass" value="{{ student.Sclass }}">
            </div>
            <div class="mb-3">
                <label for="address" class="form-label">住址</label>
                <input type="text" class="form-control" id="address" name="address" value="{{ student.address }}" required>
            </div>
            <button type="submit" class="btn btn-primary">更新</button>
        </form>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>